package com.example.springcloudribbon.controller;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author X.I.O
 * @title: ZuulController
 * @projectName spring-cloud-1
 * @description: TODO
 * @date 2021/11/7 15:15
 */
@Api(tags = "网关服务")
@RestController
@RequestMapping("/zuul")
public class ZuulController {

    @GetMapping("/test")
    @ApiOperation("测试zuul服务")
    public JSONObject urlTestController(){
        JSONObject object=new JSONObject();
        object.put("msg","你访问到我了===>");
        return object;
    }
}
